#include <iostream>
#include <string>

int main(void) {
  using namespace std;
  string currStr, preStr;
  bool isflag = true;
  cout << "Enter some characters:\n";
  while (cin >> currStr) {
    if (!isupper(currStr[0])){
      continue;
    }
    if (currStr == preStr) {
      isflag = false;
      cout << "repeated string is : " << currStr << endl;
      break;
    }
    preStr == currStr;
  } 
  if (isflag) {
    cout << "other words no repeated.\n";
  }
  
  return 0;
}
 
